package com.chenfan.mcn.dao;

import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.IncomeContractAgreement;
import com.chenfan.mcn.model.vo.IncomeContractAgreementVO;

import java.util.List;

/**
 * <p>
 * 收入合同补充协议 Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2021-02-04
 */
public interface IncomeContactAgreementMapper extends EnhancedBaseMapper<IncomeContractAgreement> {

    /**
     * 获取收入合同关联补充协议
     *
     * @param incomeContractId {@link Long}
     * @param processIds        {@link List<Long>}
     * @return List<IncomeContractAgreementVO>
     */
    List<IncomeContractAgreementVO> info(Long incomeContractId, List<Long> processIds);

    /**
     * 获取当前归档增量号
     * @param incomeContractId
     * @return
     */
    Integer getCurrentArchiveIncrement(Long incomeContractId);
}
